#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


class Goods:
    @property
    def money(self):
        return 100

    @money.setter  # 可以用来设置值
    def money(self, value):
        print(value)
        return value

    @money.deleter  # 删除值 删除设置的值，不能删除原始值
    def money(self):
        print('删除属性')


obj = Goods()
print(obj.money)
obj.money = 200

del obj.money
print(obj.money)

